package com.wangyadong.hobby.schedule.jobtask.javasync.Observerable.observer;

/**
 * <p>
 *
 * @author <714037465@qq.com>
 * @since 2018/11/1517:41
 **/
public class Client {
    public static void main(String[] args) {
        ConcreteSubject subject = new ConcreteSubject();
        Observer observer = new ConcreteObserver();
        Observer observer1 = new ConcreteObserver();

        subject.attach(observer);
        subject.attach(observer1);

        subject.change("old");
        subject.change("late");
    }
}
